NAME clr2gray – Convert color images to grayscale SYNOPSIS clr2gray [ -r<red> -g<grn> -b<blu> ] [ -<type> ] < color > gray DESCRIPTION
Converts a color image (8bit or 24bit) to an 8 bit grayscale image.
It works for both mapped and unmapped color inputs.
OPTIONS
EXAMPLE
To convert a mapped color image in FBM format to a Sun format grayscale image:
% clr2gray -S < foo.fbm > foo.8bit
To extract the red color plane from an image and write the result in
FBM format:
% clr2gray -r1 -F < foo.fbm > red.fbm
Note that since the green and blue weights were not specified, they
defaulted to 0, and the result is that only the red plane is used.
SEE ALSO
fbm(1) for general discussion, pbm(1) for PBM routines.
BUGS
None known.
HISTORY
Copyright (C) 1989,1990 by Michael Mauldin. Permission is granted
to use this file in whole or in part for any purpose, educational,
recreational or commercial, provided that this copyright notice
is retained unchanged. This software is available to all free of
charge by anonymous FTP and in the UUNET archives.